<template>
  <div class="u-message">
    <div class="triangle"></div>
    <ul>
      <li>
        <a href="#">回复我的</a>
        <span class="message">1</span>
      </li>
      <li>
        <a href="#">@我的</a>
        <span class="message">1</span>
      </li>
      <li>
        <a href="#">收到的赞</a>
        <span class="message">1</span>
      </li>
      <li>
        <a href="#">系统通知</a>
        <span class="message">1</span>
      </li>
      <li>
        <a href="#">我的消息</a>
        <span class="message">1</span>
      </li>
    </ul>
  </div>
</template>
<style lang="less" scoped>
.u-message {
  display: none;
  position: absolute;
  width: 180px;
  bottom: -240px;
  left: -75px;
  box-shadow: 0px 3px 5px #ccc;
  background-color: #fff;
  padding: 10px 0;
  z-index: 100;
}
.u-message li {
  padding: 0 15px;
  margin: 0;
  width: 180px;
  height: 40px;
  line-height: 40px;
}
.u-message li:hover {
  background-color: #f4f4f4;
}
.u-message a {
  text-shadow: none !important;
  color: #000;
}
.message {
  float: right;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background-color: tomato;
  text-align: center;
  line-height: 15px;
  transform: translateY(85%);
}
</style>
